﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Application/Cart/Administration/MasterPage.master" MaintainScrollPositionOnPostback="true" AutoEventWireup="true" CodeFile="Products.aspx.cs" Inherits="Application_Cart_Administration_Products" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<table>
<tr>
	<td>
		<table>
			<tr>
				<td>Filter:</td><td><asp:DropDownList runat="server" ID="DropDownListFilterByCategory"></asp:DropDownList></td>
			</tr>
		</table>
	</td>
</tr>
<tr>
	<td>
		<asp:GridView runat="server" ID="GridViewResults" AutoGenerateColumns="false" ShowFooter="false">
		<Columns>
			<asp:BoundField HeaderText="Id" DataField="Id" ItemStyle-HorizontalAlign="Right" />
			<asp:BoundField HeaderText="CatId" DataField="CategoriesId" ItemStyle-HorizontalAlign="Right" />
			<asp:BoundField HeaderText="Name" DataField="Name" />
			<asp:BoundField HeaderText="SKU" DataField="SKU" />
			<asp:BoundField HeaderText="Description" DataField="DescriptionShort" />
			<asp:BoundField HeaderText="Price" DataField="Price" DataFormatString="{0:c}" ItemStyle-HorizontalAlign="Right" />
			<asp:BoundField HeaderText="PKG/Content" DataField="AmountPerPackage" ItemStyle-HorizontalAlign="Right" />
			
			<asp:TemplateField HeaderStyle-Width="90px" ItemStyle-HorizontalAlign="Center">
			<ItemTemplate>
				(<a href="ProductForm.aspx?Id=<%# Eval("Id") %>">Edit</a> | <a href="Products.aspx?delId=<%# Eval("Id") %>">Delete</a>)
			</ItemTemplate>
			</asp:TemplateField>
		</Columns>
		</asp:GridView>
	</td>
</tr>
<tr>
	<td style="text-align:right">
		<asp:Button runat="server" ID="ButtonAdd" Text="<%$ Resources:Resource, New %>" PostBackUrl="~/Application/Cart/Administration/ProductForm.aspx" />
	</td>
</tr>

</table>
</asp:Content>

